package com.pzhu.model.statistics.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 统计表
 * </p>
 *
 * @author rediaz
 * @since 2024-07-08
 */
@ApiModel(value="Statistics对象", description="统计表")
public class Statistics implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "统计ID")
    @TableId(value = "stat_id", type = IdType.AUTO)
    private Integer statId;

    @ApiModelProperty(value = "管理员ID")
    private Integer adminId;

    @ApiModelProperty(value = "管理员用户名")
    private String adminName;

    @ApiModelProperty(value = "统计类型")
    private String statType;

    @ApiModelProperty(value = "统计数据")
    private String data;

    @ApiModelProperty(value = "生成时间")
    private LocalDateTime generatedAt;

    public Integer getStatId() {
        return statId;
    }

    public void setStatId(Integer statId) {
        this.statId = statId;
    }
    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }
    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }
    public String getStatType() {
        return statType;
    }

    public void setStatType(String statType) {
        this.statType = statType;
    }
    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
    public LocalDateTime getGeneratedAt() {
        return generatedAt;
    }

    public void setGeneratedAt(LocalDateTime generatedAt) {
        this.generatedAt = generatedAt;
    }

    @Override
    public String toString() {
        return "Statistics{" +
            "statId=" + statId +
            ", adminId=" + adminId +
            ", adminName=" + adminName +
            ", statType=" + statType +
            ", data=" + data +
            ", generatedAt=" + generatedAt +
        "}";
    }
}
